/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Metier;

import java.util.ArrayList;
import java.util.List;
import javax.swing.JButton;

/**
 *
 * @author Lâm
 */
public class POI extends JButton implements Descriptable {

    private String libelle;
    private int X;
    private int Y;
    private Integer id;
    private String Description;
    private List<String> Image = new ArrayList<>();
    private List<String> LienHypertextes = new ArrayList<>();
    private List<String> References = new ArrayList<>();

    @Override
    public List<String> getLiens() {
        return LienHypertextes;
    }

    @Override
    public List<String> getImages() {
        return Image;
    }

    @Override
    public List<String> getReference() {
        return References;
    }

    @Override
    public String getTexte() {
        return Description;
    }
    @Override
    public void setTexte(String Description) {
        this.Description = Description;
    }

    @Override
    public void setHypertexte(List<String> LienHypertextes) {
        this.LienHypertextes = LienHypertextes;
    }
    @Override
    public List<String> getHypertexte() {
        return this.LienHypertextes;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setLibelle(String libelle) {
        this.libelle = libelle;
    }

    public void setX(int X) {
        this.X = X;
    }

    public void setY(int Y) {
        this.Y = Y;
    }

    @Override
    public String getLibelle() {
        return libelle;
    }

    @Override
    public int getX() {
        return X;
    }

    @Override
    public int getY() {
        return Y;
    }

    public POI() {
        libelle = "";
        X = 0;
        Y = 0;
    }

    public POI(String unlibelle, int x, int y) {
        libelle = unlibelle;
        X = x;
        Y = y;
    }
    @Override
    public void setImages(List<String> Images) {
        this.Image = Images;
    }

    @Override
    public void setReferences(List<String> References) {
        this.References = References;
    }

    @Override
    public void addImage(String image) {
        Image.add(image);
    }

    @Override
    public void addReference(String Reference) {
        References.add(Reference);
    }

    @Override
    public void addLien(String Lien) {
        LienHypertextes.add(Lien);
    } 
}
